package com.lyf.design.practice.theory.behavior.strategy;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class Handler implements Strategy{
    Strategy strategy;

    public Handler(Strategy strategy) {
        this.strategy = strategy;
    }

    public Handler() {
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public void handle() {
        strategy.handle();
    }






}
